package org.vox.homepage.util.outbound;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * RestResult is the common response data container.
 *
 * @author merlin
 */
public class RestResult<T> implements Serializable {
    @JsonProperty("code")
    private Long code;

    @JsonProperty("msg")
    private String msg;

    @JsonProperty("data")
    private T data;

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
